<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>浮动布局练习3</title>
  <style>
    /* 网页布局第二准则：
    先设置盒子大小，
    之后设置盒子位置 */

    * {
      margin: 0;
      padding: 0;
    }

    li {
      list-style: none;
    }

    .box {
      width: 1226px;
      height: 615px;
      background-color: pink;
      margin: 100px auto;
    }

    .left {
      float: left;
      width: 234px;
      height: 615px;
      background-color: purple;
    }

    .right {
      float: left;
      width: 992px;
      height: 615px;
      background-color: #ccc;
    }

    .box .right ul li {
      float: left;
      width: 234px;
      height: 300px;
      background-color: skyblue;
      margin-left: 14px;
    }

    .top {
      margin-bottom: 14px;
    }
  </style>
</head>
<body>
  <div class="box">
    <div class="left">1</div>
    <div class="right">
      <ul>
        <li class="top">1</li>
        <li class="top">2</li>
        <li class="top">3</li>
        <li class="top">4</li>
        <li>5</li>
        <li>6</li>
        <li>7</li>
        <li>8</li>
      </ul>
    </div>
  </div>
</body>
</html>